<%@page import="com.codingman.jspdemo.curd.dao.UserDao"%>
<jsp:useBean id="u" class="com.codingman.jspdemo.curd.bean.User"></jsp:useBean>
<jsp:setProperty property="*" name="u" />

<%
int i = UserDao.save(u);
if (i > 0) {
	response.sendRedirect("adduser-success.jsp");
} else {
	response.sendRedirect("adduser-error.jsp");
}
%>